package com.hhyx.execl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 读取整个文件夹的Execl
 *
 * @author MARK
 */
@SpringBootApplication
@MapperScan("com.hhyx.execl.mapper*")
public class ExeclApplication implements WebMvcConfigurer {
  //favorPathExtension表示是否支持后缀匹配
  @Override
  public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
    configurer.favorPathExtension(false);
  }
  public static void main(String[] args) {
    SpringApplication.run(ExeclApplication.class, args);
  }

}
